from django.contrib import admin
from pyplog.config.models import Configuration

class ConfigurationAdmin(admin.ModelAdmin):
	fieldsets = (
		(None, {
			"fields": ("site",)
		}),
		("Site metadata", {
			"fields": ("author", "description", "title", "title_sub", "keywords")
		}),
		("Blog", { "fields": ("blog_posts_per_page",) }),
		("Photos", { "fields": ( "gallery_featured_photos",) }),
		("Misc", {
			"fields": (
				"feed_items",
				"google_analytics_id",
				"artist_index_caption",
			)
		}),
	)
	list_display = ("site", "title", "description")
admin.site.register(Configuration, ConfigurationAdmin)